home *** CD-ROM | disk | FTP | other *** search
- {$A+,B-,D+,E+,F-,G+,I+,L+,N-,O-,P-,Q-,R-,S+,T-,V+,X+}
- {$M 16384,0,655360}
-
- {
- BENCH.PAS
- Benchmarking program.
- }
-
- uses crt,uve32;
-
- var c1,c2,c3:longint;
- systime,vgatime:longint;
- i:integer;
- begin
- ia_inituve;
- writeln;
- writeln('Screen will blank for the duration of the test.');
- writeln('Test can take up to 60 seconds.');
- writeln('Waiting for disk caches to empty...');
-
- delay(5000);
- ia_powerup;
- c1:=clock;
- for i:=1 to 20 do ia_copypage(background,hidden);
- c2:=clock;
- for i:=1 to 20 do ia_copypage(hidden,vga);
- c3:=clock;
- ia_shutdown;
-
- systime:=(c2-c1) div 20;
- vgatime:=(c3-c2) div 20;
- textcolor(7);
-
- writeln('System memory to system memory copy : ',systime,' milliseconds per frame.');
- writeln('System memory to VGA memory copy : ',vgatime,' milliseconds per frame.');
- writeln('Maximum no-load framerate : ',1000 div (vgatime+systime),' frames per second.');
- writeln;
- writeln('Press a key.');
- repeat until keypressed;
- end.